
/*
 * Copyright (c) 2016. For Intelligent Group.
 */

package com.intelligent.ispc.client.ex.dynamictable;

import java.util.List;

/**
 * Created by cherry on 2016/11/1.
 */

/**
 * Dynamic load data
 *
 * @param <T> Generic data
 */
public abstract class DyLoadTask<T> {
    /**
     * Load data to get the data set
     *
     * @param start The starting position of load data
     * @param end   The end of the load data
     * @return Generic data collection
     */
    public abstract List<T> load(int start, int end);

    /**
     * Load data after the execution of this method
     */
    public void onloaded() {
    }
}
